Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't let ubuntu try to install its crazy jayatana agent. #13813

Merged
merged 1 commit into from
Sep 26, 2015

Conversation

rmuir
Copy link
Contributor

@rmuir rmuir commented Sep 26, 2015

By default, our security stuff will reject this (as do other apps).
See https://bugs.launchpad.net/ubuntu/+source/jayatana/+bug/1441487

However its not really the user's fault, ubuntu screws up here by
installing this agent by default. We don't want any agents.

So instead, we drop it like this:

$ bin/elasticsearch
Warning: Ignoring JAVA_TOOL_OPTIONS=-Bogus1 -Bogus2
Please pass JVM parameters via JAVA_OPTS instead
[2015-09-25 23:34:39,777][INFO ][node                     ] [Doctor Bong] version[3.0.0-SNAPSHOT], pid[19044], build[2f5b6ea/2015-09-26T03:18:16Z]
...

Closes #13785

By default, our security stuff will reject this (as do other apps).
See https://bugs.launchpad.net/ubuntu/+source/jayatana/+bug/1441487

However its not really the user's fault, ubuntu screws up here by
installing this agent by default. We don't want any agents.

So instead, we drop it like this:

```
$ bin/elasticsearch
Warning: Ignoring JAVA_TOOL_OPTIONS=-Bogus1 -Bogus2
Please pass JVM parameters via JAVA_OPTS instead
[2015-09-25 23:34:39,777][INFO ][node                     ] [Doctor Bong] version[3.0.0-SNAPSHOT], pid[19044], build[2f5b6ea/2015-09-26T03:18:16Z]
...
```

Closes elastic#13785
@rjernst
Copy link
Member

rjernst commented Sep 26, 2015

LGTM

@dadoonet
Copy link
Member

It looks good to me

rmuir added a commit that referenced this pull request Sep 26, 2015
Don't let ubuntu try to install its crazy jayatana agent.
@rmuir rmuir merged commit e01a74d into elastic:master Sep 26, 2015
@clintongormley clintongormley added the :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts label Sep 27, 2015
nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Sep 28, 2015
Installs javatana in vivid, emulates its on-login actions when starting
elasticsearch and verifies that elasticsearch turns off javatana.

Relates to elastic#13813
@kno10
Copy link

kno10 commented Sep 29, 2015

This should be fixed in Ubuntu (by getting rid of this hack), and not require workaround in Elasticsearch etc.

@rmuir
Copy link
Contributor Author

rmuir commented Sep 29, 2015

Don't complain to me, I don't work on ubuntu.

@nik9000
Copy link
Member

nik9000 commented Sep 29, 2015

I don't have a link but when I looked around it looked like ubuntu is
moving away from it. But they'll be slow and we got this into the first
version that suffers from it.
On Sep 29, 2015 11:52 AM, "Robert Muir" notifications@github.com wrote:

Don't complain to me, I don't work on ubuntu.


Reply to this email directly or view it on GitHub
#13813 (comment)
.

@rmuir
Copy link
Contributor Author

rmuir commented Sep 29, 2015

I linked to the bug on this issue.

nik9000 added a commit that referenced this pull request Oct 6, 2015
Installs javatana in vivid, emulates its on-login actions when starting
elasticsearch and verifies that elasticsearch turns off javatana.

Relates to #13813
nik9000 added a commit that referenced this pull request Oct 6, 2015
Installs javatana in vivid, emulates its on-login actions when starting
elasticsearch and verifies that elasticsearch turns off javatana.

Relates to #13813
nik9000 added a commit that referenced this pull request Oct 6, 2015
Installs javatana in vivid, emulates its on-login actions when starting
elasticsearch and verifies that elasticsearch turns off javatana.

Relates to #13813
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts PITA Team:Delivery Meta label for Delivery team v2.1.0 v5.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Elastic search 2.0.0-beta2 zip package does not start on ubuntu
7 participants